package org.example.asyncctask;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : JCccc
 * @CreateTime : 2020/4/8
 * @Description :
 **/
 
@RestController
public class TestController {
 
 
    @Autowired
    TestAsyncService testAsyncService;
 
    @GetMapping("/testAsyncNotice")
    public void testAsyncNotice() throws Exception {
        System.out.println("发货通知调用开始！");
 
         int[] taskArrays = new int[]{2000, 5000, 10000};
        testAsyncService.testNotice(taskArrays);
        System.out.println("已经开始通知,异步执行通知");
    }
}